import { createApp } from 'vue'
import 'virtual:uno.css'

import App from './App.vue'
import router from './router'
import pinia from './stores'

const app = createApp(App)

// 注册路由
app.use(router)

// 注册状态管理
app.use(pinia)

// 全局错误处理
app.config.errorHandler = (err, vm, info) => {
  console.error('全局错误:', err, info)
}

app.mount('#app')
